// const { Login } = require('./models/loginsModel');
const { personalModel } = require('./models/salespersonsModel');
//登陆函数
module.exports.salesLogin = async function (loginUser) {

    const { account, password } = loginUser;
    // console.log(loginUser);
    let logins = await personalModel.find({ account, password})

    return logins
}